package com.basaji.dao;

import java.util.List;

import com.basaji.domain.pojo.BaseObject;

public interface IBaseDao {

	void save(BaseObject t) throws Exception;
	
	void update(BaseObject t) throws Exception;
	
	void delete(BaseObject t) throws Exception;

    public BaseObject get(Class<? extends BaseObject> clazz, Object id) throws Exception;
    
    void saveOrUpdate(BaseObject t) throws Exception;
    
    <T> List<T> getList(String hql,Object[] values,int start, int size) throws Exception;
    
    int getCount(String hql,Object[] values) throws Exception ;
}
